package com.xyy.dfapi.controller;

import com.xyy.dfapi.utils.CacheUtils;
import com.xyy.dfapi.utils.Constant;
import lombok.extern.log4j.Log4j2;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Log4j2
@RestController
public class TokenController {
    @GetMapping("/login")
    public String login() {
        return CacheUtils.get(Constant.TOKEN).toString();
    }

    @GetMapping("/config")
    public String config() {
        return CacheUtils.get(Constant.CONFIG).toString();
    }
}
